doe_predict_enhanced Function

public function doe_predict_enhanced(mdl, x, alpha, residual_mse, x_fit) result(pred)

Computes predictions with confidence and prediction intervals using a user-supplied residual mean squared error. This is equivalent to doe_predict, and is retained for convenience when the residual mean squared error is computed by the caller.

Arguments

Type IntentOptional Attributes Name
class(doe_model), intent(in) :: mdl

The DOE model.

real(kind=real64), intent(in), dimension(:,:) :: x

The M-by-N matrix containing the M values of each of the N factors at which to evaluate the model.

real(kind=real64), intent(in), optional :: alpha

The significance level, in the range (0, 1). The default is 0.05 (95% intervals).

real(kind=real64), intent(in), optional :: residual_mse

An optional residual mean squared error of the fit. If omitted, the value stored in the model by doe_fit_model is used.

real(kind=real64), intent(in), optional, dimension(:,:) :: x_fit

An optional K-by-N matrix containing the factor values used to fit the model. This is required if the model was not created by doe_fit_model.

Return Value type(doe_prediction)

A doe_prediction object containing the M predicted values, the lower and upper confidence bounds, the lower and upper prediction bounds, and the confidence level.